PATH
Hardware Documentation
> Device Managers and Drivers
> ATA Devices
> ATA Device Software Guide
|
enable partition write protect
The
enable partition write protect
control function enables software write protection on the specified partition. The partition is specified either by its logical drive number or its block address on the media. A
controlErr
is returned if the partition does not have a partition map entry on the media or write protection could not be enabled for the partition.
Parameter block
-->
|
csCode
|
A value of 46.
|
-->
|
ioVRefNum
|
The logical drive number or 0 if using partition block address
|
-->
|
csParam[ ]
|
The partition block address (long) if
ioVRefNum
param = 0.
|
<--
|
ioResult
|
See result codes.
|
RESULT CODES
noErr
|
0
|
Successful completion, no error occurred
|
controlErr
|
-17
|
Unimplemented control function; could not complete requested operation
|
nsDrvErr
|
-56
|
The specified logical drive number does not exist
|
© 1999 Apple Computer, Inc. — (Last Updated 30 Oct 97) Previous | Back Up One Level | Next | Show Frames | Hide Frames